/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2024-2024. All rights reserved.
 *
 * DSS is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *
 *          http://license.coscl.org.cn/MulanPSL2
 *
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 * -------------------------------------------------------------------------
 *
 * dsscmd_connection.h
 *
 *
 * IDENTIFICATION
 *    src/cmd/dsscmd_connection.h
 *
 * -------------------------------------------------------------------------
 */

#ifndef DSS_CMD_CONN_OPT
#define DSS_CMD_CONN_OPT

/* get opt connection */
dss_conn_t *dss_get_connection_by_uds(const char *input_uds);

dss_conn_t *dss_get_connection_common(const char *input_home, const char *input_uds);

/* get opt connection status */
bool8 dss_cmd_is_connected();

/* disconnection opt connection */
void dss_cmd_disconnect_exit();

#endif
